package com.xh.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.xh.entiy.CourseCatalog;

public interface CatalogRepository extends CrudRepository<CourseCatalog, Integer>{
	
	List<CourseCatalog> findByCourseId(Integer id);
	
	List<CourseCatalog> findByParentId(Integer parentId);

	CourseCatalog findById(Integer id);
}
